'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE, BOOLEAN, TEXT } = app.Sequelize;

  const KnowledgePoints = app.model.define('knowledgePoints', {
    id: {
      type: INTEGER(11),
      primaryKey: true
    },
    name: STRING(60),
    rank: INTEGER(11),
    parent_id: INTEGER(11),
    created_at: INTEGER(11),
    updated_at: INTEGER(11),
    subject_id: INTEGER(11),
    level: INTEGER(11),
    grade_phase: INTEGER(11)
  });

  return KnowledgePoints;
};